package com.naiterui.ehp.bs.patient.repository;

import java.util.List;

import com.naiterui.common.repository.core.BaseJpaRepository;
import com.naiterui.ehp.bp.domain.UserLabel;

/**
 * <pre>
 * 用户标签关联关系表持久层
 * </pre>
 *
 * @author fangguanhong
 * @date 2020/5/23 下午5:53
 * @since 1.0.0
 */
public interface IUserLabelRepository extends BaseJpaRepository<UserLabel, Long> {

    UserLabel findFirstByUserTypeAndLabelIdAndUserId(Integer userType, Long labelId, Long userId);

    List<UserLabel> findByUserTypeAndLabelIdInAndUserId(Integer userType, List<Long> labelId, Long userId);
}
